<?php
/**
 * @package PHPKit.
 * @author: mawenpei
 * @date: 2016/11/25
 * @time: 17:31
 */
use HuoKit\JobMan\Handler\ITask;
use Psr\Log\LoggerInterface;

class demoTask implements ITask
{
    protected $logger;

    public function handle()
    {
        $this->logger->info('demoTask running ' . date('Y-m-d H:i:s'));
    }

    public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
}
